﻿using RecruitStudents.Client.BLL;
using RecruitStudents.Utility.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RecruitStudents.Client.WS
{
    public partial class ScoreDisplay7 : System.Web.UI.Page
    {
        protected static string strHttpImageUrl = Utility.Config.ConfigHelper.GetConfig("HttpImageUrl");

        protected DataTable dtScoreDisplay = null;
        protected string strExamRoomName = string.Empty;
        protected string strExamRoomName1 = string.Empty;
        protected string strSpecialityKindsNO = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            string SystemYear = string.Empty;
            if (Request.Params["SystemYear"] != null)
            {
                SystemYear = Request.Params["SystemYear"];
            }
            strSpecialityKindsNO = Request.Params["SpecialityKindsNO"];
            if (!string.IsNullOrEmpty(strSpecialityKindsNO))
            {
                string strSpecialityKindsNO = Request.Params["SpecialityKindsNO"].ToString();
                if (strSpecialityKindsNO == "1303010_A")//表演_声
                {
                    strExamRoomName = SystemYear + "年上海市表演类统考";
                    strExamRoomName1 = "“<font color='#DAA520'>声乐</font>”科目成绩 ";
                }
                else if (strSpecialityKindsNO == "1303010_B")//表演_台
                {
                    strExamRoomName = SystemYear + "年上海市表演类统考";
                    strExamRoomName1 = "“<font color='#DAA520'>台词</font>”科目成绩 ";
                }
                else if (strSpecialityKindsNO == "1303010_C")//表演_形
                {
                    strExamRoomName = SystemYear + "年上海市表演类统考";
                    strExamRoomName1 = "“<font color='#DAA520'>形体</font>”科目成绩 ";
                }
                else if (strSpecialityKindsNO == "1303010_D")//表演_表
                {
                    strExamRoomName = SystemYear + "年上海市表演类统考";
                    strExamRoomName1 = "“<font color='#DAA520'>表演</font>”科目成绩 ";
                }
                else if (strSpecialityKindsNO == "1303090_A")//播音_图片评述
                {
                    strExamRoomName = SystemYear + "年上海市播音与主持艺术专业统考";
                    strExamRoomName1 = "“<font color='#DAA520'>图片述评</font>”科目成绩 ";
                }
                else if (strSpecialityKindsNO == "1303090_B")//播音_文稿、才艺
                {
                    strExamRoomName = SystemYear + "年上海市播音与主持艺术专业统考";
                    strExamRoomName1 = "“<font color='#DAA520'>文稿朗读、才艺展示</font>”科目成绩 ";
                }
            }
            if (Request.Params["ExamRoomNo"] != null)
            {
                string strExamRoomNo = Request.Params["ExamRoomNo"].ToString();
                //TB_Exam_ExamRoom model = ServiceHelper.CreateBaseService().GetExamRoomModel(strExamRoomNo);
                //if (model != null)
                //{
                //    strExamRoomName = model.ExamRoomName;
                //}
                dtScoreDisplay = ServiceHelper.CreateScoreService().GetScoreDisplayTable7(strExamRoomNo);

                //DataRow dr = dtScoreDisplay.NewRow();
                //dr["LotNO"] = "1";
                //dr["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr);
                //DataRow dr1 = dtScoreDisplay.NewRow();
                //dr1["LotNO"] = "2";
                //dr1["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr1);
                //DataRow dr2 = dtScoreDisplay.NewRow();
                //dr2["LotNO"] = "3";
                //dr2["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr2);
                //DataRow dr3 = dtScoreDisplay.NewRow();
                //dr3["LotNO"] = "4";
                //dr3["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr3);
                //DataRow dr4 = dtScoreDisplay.NewRow();
                //dr4["LotNO"] = "5";
                //dr4["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr4);
                //DataRow dr5 = dtScoreDisplay.NewRow();
                //dr5["LotNO"] = "6";
                //dr5["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr5);
                //DataRow dr6 = dtScoreDisplay.NewRow();
                //dr6["LotNO"] = "7";
                //dr6["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr6);
                //DataRow dr7 = dtScoreDisplay.NewRow();
                //dr7["LotNO"] = "8";
                //dr7["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr7);
                //DataRow dr8 = dtScoreDisplay.NewRow();
                //dr8["LotNO"] = "9";
                //dr8["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr8);
                //DataRow dr9 = dtScoreDisplay.NewRow();
                //dr9["LotNO"] = "10";
                //dr9["IdentityCard"] = "310104199911257240";
                //dtScoreDisplay.Rows.Add(dr9);




            }
        }
    }
}